package com.example.androdlearning2425.ui.theme.kotlin

fun main(){
    print("Please input telephone number:")
    val telephone = readln().replace(oldValue="",newValue="").replace(oldValue="",newValue="")
    print(telephone)
    if (telephone.length != 11) {
        println("Telephone is Valid")


    } else {
        val q3 = telephone.substring(0,3)
        val h4 = telephone.substring(7,11)
        print("$q3 **** $h4")
    }
}